Javascript doesn't support default arguments in function declaration