updated main page, added additional coffeescript functions