Prepare for npm packaging