initial commit - coppied from paperclip.js