Minor changes to the previous big commit

- FB Connect in sign-up dialog as well
- JS moved to outside file
- Other minor changes