fixing mobile js