Added styles option and some JSHint cleanup