move playground code to js folder
add full path construction func