fixed some js formatting