clean up js and add new sample