fixed javascript errors and added time one shot goal