JavaScript based online advertisement script