Unable to include API in workspace

workspace
javascript
nodejs

#1

I have encountered I rather odd issue, where upon I can write a html file using a basic text editor and it works with this API, yet should I copy and paste the exact code across to an ejs file in my workspace, it does not work (I have also put the API files into my Cloud9 workspace). I’m unsure if this is something odd with Cloud9 or just me doing it wrong (it probably is), but any help here would be greatly appreciated. (As you could see in my stack overflow post it seems to not be looking in the local directory but rather looking for a route)

Although it is not entirely necessary here is a stack overflow link where I talked about this issue (http://stackoverflow.com/questions/41334665/incuding-mathquill-in-project)