Never really used JS, so here's my noob code I used within the codeacademy framework to learn js.