doing javascript