Fix some javascript