Reformatted javascript