Convert to ERB and remove raphaelJS