implemented class autoloading
modified template.js to rename the includes/plugin folder to includes/prefix
corrected a method call