added support for npm distribution
updated version to 0.0.4