broke js code into multiple lines