Put common scripts is JS file