adding brownlow js cods