js for better mobile support