Fix JS error with resources plugin, version 0.4.4