GTNPORTAL-3150

move mobile portal specific javascript to the core javascript. Fixes issues where sites with the mobile skin would not function properly without also adding portal specific javascript.