Refactored to use jquery