Add hook called after compiling JavaScript