The function println is undefined in Nashorn (JDK 8), replace with print. Fixes #24