separate js script into files