Changed JS library from jQuery to YUI