made a more legit base javascript spec