Really simple take on implementing javascript front end framework