separate js for each platform