Use different method to inject common CSS (to avoid user stylesheet issues) and move some JavaScript code to helper.js