fixed memory allocation inefficiency
fixed jslint warnings
remove old action