Rewrite js interface