fixed jsbeautifier check; TODO: snippets and get beautifier to run on relative paths
changed code formatting to autoformat