expending tabs for javascript