add dpointer dependancy
fix most jhint errors