def translate_js(js, HEADER=DEFAULT_HEADER, use_compilation_plan=False):
if use_compilation_plan and not '<STR_LIT>' in js and not '<STR_LIT>' in js:<EOL><INDENT>return translate_js_with_compilation_plan(js, HEADER=HEADER)<EOL><DEDENT>parser = pyjsparser.PyJsParser()<EOL>parsed = parser.parse(js)  <EOL>translating_nodes.clean_stacks()<EOL>return HEADER + translating_nodes.trans(<EOL>parsed)<EOL>
js has to be a javascript source code.
       returns equivalent python code.