trying to do javascript