Added a few new JS functions
Merge branch 'twitter-update' into staging