According to them
"nude.js is a JavaScript implementation of a nudity scanner based on approaches from research papers. HTMLCanvas makes it possible to analyse image data and afterwards decide whether it should be displayed or not. The detection algorithm runs at the client, therefore it's possible (with user interaction) to display the image even if it's identified as nude (false positive)"

Source
Related Post
Css3 and Javascript based Inline Model Box

Design your javascript confirm box with jConfirm
