Fix fatal for add javascript for theme base