adding front page
wrapping js to avoid globals
additions for mobile