Fixed java script for chrome.
Release 0.5.0.5