clean template and add raphaelJS