simple JS static analyzer