When adding external libraries to a stack snippet the
<script> element is inserted before the already existing elements. So if you want to include a library which depends on another one you have to add the dependence last. This is contrary to the normal workflow.
Btw: Is is nescessary to include the script in the html area? Jsfiddle for example doesn't show them in the normal code windows, which is a cleaner approach in my opinion.