Reformatted javascript code.