Version 1.1. Now supporting image pre-loading and source code rewritten in plain javascript