[Tizen ext] Improvements to js2c.sh script

via José Bollo on crosswalk-dev