UC-90 Made some changes to update mobile for new FB

This mostly amounted to making sure the newest JS SDK was being loaded and removing some cruft.

Also updated to current style guidelines.

https://wikia-inc.atlassian.net/browse/UC-90
The above moves function creation out of the loop below on lines 106 & 110