adopt js to api changes
remove semicolons