detect type of javascript variables via static code analyzing