fixed js example