Fixing js test and build