made tumblrapi.js file

Copied Mary's function from krone into tumblrapi.