added marketing logic js