make functions non-anonymous
address some jslint warnings
remove jquery module