added javascript for frontpage toggle + styling