adding javascript helpers