adding . before javascript calls