Cleanup: removed tabs for spaces, cleaned JQuery efficiency