converted indentation to spaces in public/js