Changing Format to Javascript