Create apflickr.js