separate javascript