changing the file into haml and adding the script for analytics