fixes for javascript test build