tweaks to js position
add functional position