combine js functions into same file