removed boilerplat jquery, cleaned up the code