fix indentation of test.js to pass jshint
migrate quote script from PHP to JS