Added Comments for clarity

Also added a jquery test call