layout javascript with comments