Updated js for flying movements