support for es 1.2

There are a lot of unused import here. Could you remove unused ones?