javascript now working