Added template. Added test from class & then the javascript function.