Add message on template for empty carousel and enhance testing

Tests still have issues
Fix some JSHint warnings on JS files