Separates page scripts
adds mobile optimization and other stuff