added jshint and fixed some jslint bugs
introduced hide argument to make interfering elements invisible