Fixed some javascript