Updated the JavaScript file for the use on SharpFrame