adding javascript spec tests