Parallaxa in pure javascript