Refactored the enableSound option into a options javascript object.

    It feels more like idiomatic javascript and is more readable.