javascript now works