move scrolling js into separate file, add check if mobile