edit js for mobile