Change all javascript to pass the JSLint (fix #30), Change all javascript to pass the JSLint (fix #29)