fixed a javascript issue and added jquery as dependency