Using jQuery and Raphaël to mimic the use of a a canal lock