fixed example js