Core js file - updated

Added the ability to force the script to active even in modern browsers