Made compatible with JavaScript syntax

More Cross Platform compliant