Use dot notation accessing properties and others

Use dot notation instead of subscript notation when accessing properties, remove all semicolons, make codes looks cleanly.