Return Javascript result for OSX