minimal js extensions