$(document).ready(

function addWatermark() {

    // Define what happens when the textbox comes under focus
    // Remove the watermark class and clear the box
    $("#s").focus(function() {

        $(this).filter(function() {

            // We only want this to apply if there's not 
            // something actually entered
            return $(this).val() == "" || $(this).val() == "Enter Keywords"

        }).removeClass("watermark").val("");

    });

    // Define what happens when the textbox loses focus
    // Add the watermark class and default text
    $("#s").blur(function() {

        $(this).filter(function() {

            // We only want this to apply if there's not
            // something actually entered
            return $(this).val() == ""
            console.log('test');

        }).addClass("watermark").val("Enter Keywords");

    });

});