only do js effects on wider windows
move javascript out to own file