Simple library for loading images in Javascript