Modified the leave type coffeescript file and also modified the leave_type.rb file add the one method as_json method. And also modified the haml files.