Bug 918243 - Refactor javascript mutt tests declarations. r=whimboo