I think this community post will be helpful for you: http://community.retool.com/t/how-do-i-use-external-libraries/3742/3