Fixed js build issues.