Added sample code, need javascript