fixed jshint issues and changed dimension selector to handle case where
the project is already loaded