Added join form and js was moved to a file