Refactor inner js,move to head meta.