Fix the Javascript to support custom responsive values