Fixes syntax errors and updates the package name for npm