Changed the argument obtaining functions to make more sense with Javascripts conventions

didn't test lol