Removed temp data, renamed all js to use angular best practices and ensured named functions were used throughout.