create dedicated java script for svg