removed unnecessary jquery plugin and cleaned up code