java script and frame work