Removed jQuery dependency, improved commenting.