fixed javascript bug, update functional interface(print...)