Fixed typos and prepared for jquery plugins