Adding jquery plugins site integration

Also cleaned up code a tiny bit!