JS restructure and FB connect Test1

moved all startup scripts to on pageshow events and basic FB Test 1