Refactored to jQuery

@craigh