var Jasse = Jasse || {};

/**
 * console.log – graceful degradation
 * Source: http://ajaxian.com/archives/thomas-fuchs-comes-back-with-some-javascript-tips
 * @author Stefan Baur
 */
if (window['console'] === undefined) {
    window.console = {
        log: function() {
        }
    };
}


/**
 * String prototype enhancements
 * Source: http://www.tek-tips.com/faqs.cfm?fid=6620
 */
String.prototype.startsWith = function(str) {
    return (this.match("^" + str) == str);
};
String.prototype.endsWith = function(str) {
    return (this.match(str + "$") == str);
};
String.prototype.trim = function() {
    return (this.replace(/^[\s\xA0]+/, "").replace(/[\s\xA0]+$/, ""));
};

