fix bugs with new javascript file.