Main script for npm