fixed js bug, working on metaform