add js code for mobile