Remove some not using dependencies from bower

May add them back if need it.
Tweak JS code to meet JSHint ans JSCS requirement