some corrections about JavaScript