Fixed some minor javascript errors