This is my common JavaScript code