Removed bug in ajaxify and implemented issue #6