Organize Javascript code.