Fix import path
#23
fix method reference so that it also works in JavaScript
#52