move script to main.js


Signed-off-by: VandeurenGlenn <vandeurenglenn@gmail.com>