Add use strict and some missing semicolons to JS
Reformat tree table JS