Extend helper::script to accept onlyif param