include script IME type in footer JS snippet