javascript is just java for people who can't handle curly braces