open type js in new window