That's way too much of a nutshell.
What are you trying to do exactly, and where does the javascript come in?