Update main.js

changed main.js to incorporate intellisense activation even if cursor is in the middle of a valid variable name. Itearated through the characters behind cursor position in reverse order till we find @ which should be at start of line or checked if the character before @ belongs the list of beforeStartCharaters(indicating start of a new statement/variable)