Installer JS in external file for a cleaner code