all javascript now working