A little javascript framework for a bit more readable code