Social Media Navigation in Javascript