Updated version to 0.0.4. Fixed maven build, updated JS docs.