javascript code formatting