Error thrown

Call to a member function add_inline_js() on null