Fix Notice: Undefined index: text/javascript