Create check.js

Updated Jquery code for back end integration.