Code cleanup

Removed external library (jQuery), cleaned code