added some functions to js, need fix google navigation